package com.linghu.furn.controller;





import com.linghu.furn.bean.Furn;
import com.linghu.furn.bean.Msg;
import com.linghu.furn.service.FurnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;


import java.util.List;

/**
 * @author 令狐荣豪
 * @version 1.0
 */
@Controller
public class FurnController {
    //属性
    @Autowired
    FurnService furnService;


    @RequestMapping("/save")//前端数据打到这里来
    @ResponseBody
    public Msg save(@RequestBody Furn furn){//将前端发过来的json数据封装成javabean数据
        furnService.save(furn);
        return Msg.success();
    }



}
